04. OpenAI Gym

OpenAI Gym

You are not required to install OpenAI Gym on your computer, and you will have the option to do all of your coding implementations within the classroom. You can learn more about OpenAI Gym by perusing the GitHub repository.

You're encouraged to take the time to check out the leaderboard, which contains the best solutions to each task.

Check out this blog post to read more about how OpenAI Gym is used to accelerate reinforcement learning (RL) research.

(Optional) Installation Instructions

If you'd like to install OpenAI Gym on your machine, you are encouraged to perform a minimal install:

git clone https://github.com/openai/gym.git
cd gym
pip install -e .

Once you have installed OpenAI Gym, obtain the code for the classic control tasks (such as 'CartPole-v0'):

pip install -e '.[classic_control]'

Finally, check your installation by running the simple random agent provided in the examples directory.

cd examples/agents
python random_agent.py

(These instructions are derived from the README in the GitHub repository.)